import { useState } from "react";
import '../../css/from.css'
const List = (props) => {
    const [ncount] = useState(() => {
        return props.inneList
    })
    return (
        <div className="list" >
            <div> 
                <ul>
                    {
                        props.inneList.map((item, index) => <li key={index}>
                            <p>日期：{item.rqi}</p>
                            <p>标题：{item.ti}</p>
                            优先级：<p>{item.you}</p>
                        </li>)
                    }
                </ul>
            </div>
        </div>
    )
}


export default List